<template>
    <table cellspacing="0" cellpadding="0" border="0" class="el-table__header subtable" width=100%>
        <colgroup>
            <col width="20%">
            <col width="20%">
            <col width="20%">
            <col width="20%">
            <col fixed="right" width="20%">
        </colgroup>
        <thead>
            <tr>
                <th colspan="1" rowspan="1" class=" is-leaf">工作进度</th>
                <th colspan="1" rowspan="1" class=" is-leaf">状态</th>
                <th colspan="1" rowspan="1" class=" is-leaf">操作人员</th>
                <th colspan="1" rowspan="1" class=" is-leaf">操作</th>
                <th colspan="1" rowspan="1" class=" is-leaf">确认人员</th>
            </tr>
        </thead>

        <tr>
            <td>验证点位图</td>
            <td>
                <el-tag v-if="scope.row.dianweitustatus === 0" type="warning">未上传</el-tag>
                <el-tag v-else-if="scope.row.dianweitustatus === 1" type="primary">已上传</el-tag>
                <el-tag v-else type="success">已确认</el-tag>
            </td>
            <td>{{scope.row.dianweituoperator}}</td>
            <td>
                <el-button size="small" type="primary" @click="dwthandleclick(scope.$index, scope.row)">
                    查看
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.dianweitustatus === 0&&roletype==0" @click="handleUpdateStatus(scope.row,'dianweitustatus')">
                    填写完成
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.dianweitustatus === 1&&roletype==1" @click="handleUpdateStatus(scope.row,'dianweitustatus')">
                    确认OK
                </el-button>
            </td>
            <td>{{scope.row.dianweituconfirmor}}</td>
        </tr>
        <tr>
            <td>验证方案</td>
            <td>
                <el-tag v-if="scope.row.fanganstatus === 0" type="warning">未提交</el-tag>
                <el-tag v-else-if="scope.row.fanganstatus === 1" type="primary">已提交</el-tag>
                <el-tag v-else type="success">已确认</el-tag>
            </td>
            <td>{{scope.row.fanganoperator}}</td>
            <td>
                <el-button size="small" type="primary" @click="fahandleclick(scope.$index, scope.row)">
                    查看
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.fanganstatus === 0&&roletype==0" @click="handleUpdateStatus(scope.row,'fanganstatus')">
                    确认状态
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.fanganstatus === 1&&roletype==1" @click="handleUpdateStatus(scope.row,'fanganstatus')">
                    确认OK
                </el-button>
            </td>
            <td>{{scope.row.fanganconfirmor}}</td>
        </tr>
        <tr>
            <td>现场验证工作</td>
            <td>
                <el-tag v-if="scope.row.xianchangyanzhengstatus=== 0" type="warning">未完成</el-tag>
                <el-tag v-else-if="scope.row.xianchangyanzhengstatus=== 1" type="primary">已完成</el-tag>
                <el-tag v-else type="success">已确认</el-tag>
            </td>
            <td>{{scope.row.xianchangyanzhengoperator}}</td>
            <td>
                <el-button size="small" type="primary" @click="xcyzgzhandleclick(scope.$index, scope.row)">
                    查看
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.xianchangyanzhengstatus === 0&&roletype==0" @click="handleUpdateStatus(scope.row,'xianchangyanzhengstatus')">
                    确认状态
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.xianchangyanzhengstatus === 1&&roletype==1" @click="handleUpdateStatus(scope.row,'xianchangyanzhengstatus')">
                    确认OK
                </el-button>
            </td>
            <td>{{scope.row.xianchangyanzhengconfirmor}}</td>
        </tr>
        <tr>
            <td>验证报告</td>
            <td>
                <el-tag v-if="scope.row.yanzhengbaogaostatus === 0" type="warning">未提交</el-tag>
                <el-tag v-else-if="scope.row.yanzhengbaogaostatus === 1" type="primary">已提交</el-tag>
                <el-tag v-else type="success">已确认</el-tag>
            </td>
            <td>{{scope.row.yanzhengbaogaooperator}}</td>
            <td>
                <el-button size="small" type="primary" @click="bghandleclick(scope.$index, scope.row)">
                    查看
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.yanzhengbaogaostatus === 0&&roletype==0" @click="handleUpdateStatus(scope.row,'yanzhengbaogaostatus')">
                    确认状态
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.yanzhengbaogaostatus === 1&&roletype==1" @click="handleUpdateStatus(scope.row,'yanzhengbaogaostatus')">
                    确认OK
                </el-button>
            </td>
            <td>{{scope.row.yanzhengbaogaoconfirmor}}</td>
        </tr>
        <tr>
            <td>纸质验证文档</td>
            <td>
                <el-tag v-if="scope.row.dijiaowendangstatus === 0" type="warning">未递交</el-tag>
                <el-tag v-else-if="scope.row.dijiaowendangstatus === 1" type="primary">已递交</el-tag>
                <el-tag v-else type="success">已确认</el-tag>
            </td>
            <td>{{scope.row.dijiaowendangoperator}}</td>
            <td>
                <el-button size="small" type="primary" @click="zzwdhandleclick(scope.$index, scope.row)">
                    查看
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.dijiaowendangstatus === 0 && roletype==0" @click="handleUpdateStatus(scope.row,'dijiaowendangstatus')">
                    确认状态
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.dijiaowendangstatus === 1 && roletype==1" @click="handleUpdateStatus(scope.row,'dijiaowendangstatus')">
                    确认OK
                </el-button>
            </td>
            <td>{{scope.row.dijiaowendangconfirmor}}</td>
        </tr>
        <tr>
            <td>纸质验证文档</td>
            <td>
                <el-tag v-if="scope.row.shenhewendangstatus === 0" type="warning">未审核</el-tag>
                <el-tag v-else-if="scope.row.shenhewendangstatus === 1" type="primary">已审核</el-tag>
                <el-tag v-else type="success">已确认</el-tag>
            </td>
            <td>{{scope.row.shenhewendangoperator}}</td>
            <td>
                <el-button size="small" type="primary" @click="zzwdhandleclick(scope.$index, scope.row)">
                    查看
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.shenhewendangstatus === 0 && roletype==0" @click="handleUpdateStatus(scope.row,'shenhewendangstatus')">
                    确认状态
                </el-button>
                <el-button size="small" type="warning" v-if="scope.row.shenhewendangstatus === 1 && roletype==1" @click="handleUpdateStatus(scope.row,'shenhewendangstatus')">
                    确认OK
                </el-button>
            </td>
            <td>{{scope.row.shenhewendangconfirmor}}</td>
        </tr>
        <tr>
            <td>验证原始数据上传</td>
            <td>
                <!-- <el-tag v-if="scope.row.shenhewendangstatus === 0" type="warning">未审核</el-tag>
                      <el-tag v-else-if="scope.row.shenhewendangstatus === 1" type="primary">已审核</el-tag>
                      <el-tag v-else type="success">已确认</el-tag> -->
            </td>
            <td>{{scope.row.shenhewendangoperator}}</td>
            <td>
                <el-button size="small" type="primary" @click="shujudhandleclick(scope.$index, scope.row)">
                    查看
                </el-button>
                <!-- <el-button size="small" type="warning" v-if="scope.row.shenhewendangstatus === 0 && roletype==0" @click="handleUpdateStatus(scope.row,'shenhewendangstatus')">
                        确认状态
                      </el-button>
                      <el-button size="small" type="warning" v-if="scope.row.shenhewendangstatus === 1 && roletype==1" @click="handleUpdateStatus(scope.row,'shenhewendangstatus')">
                        确认OK
                      </el-button> -->
            </td>
            <td>{{scope.row.shenhewendangconfirmor}}</td>
        </tr>

    </table>
</template>
